package com.jzr.open.db1.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 用户数据表
 * </p>
 *
 * @author henry
 * @since 2019-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TUser对象", description="用户数据表")
public class TUser implements Serializable {
    private static final long serialVersionUID = 1L;
    public static final String TableName = "t_user";
    public static final String Id_ = "id";
    public static final String DistrictCode_ = "district_code";
    public static final String UserCode_ = "user_code";
    public static final String UserName_ = "user_name";
    public static final String UserType_ = "user_type";
    public static final String Password_ = "password";
    public static final String Sex_ = "sex";
    public static final String DateBirth_ = "date_birth";
    public static final String Birthplace_ = "birthplace";
    public static final String Mobile_ = "mobile";
    public static final String Phone_ = "phone";
    public static final String Email_ = "email";
    public static final String IdNumber_ = "id_number";
    public static final String IdNumberType_ = "id_number_type";
    public static final String PcaCode_ = "pca_code";
    public static final String Address_ = "address";
    public static final String PasswordQuestion_ = "password_question";
    public static final String PasswordAnswer_ = "password_answer";
    public static final String LastLogin_ = "last_login";
    public static final String RegTime_ = "reg_time";
    public static final String CanceTime_ = "cance_time";
    public static final String UserState_ = "user_state";
    public static final String Terminal_ = "terminal";
    public static final String Status_ = "status";
    public static final String Remark_ = "remark";
    public static final String PhotoUrl_ = "photo_url";
    public static final String DefaultPage_ = "default_page";
    public static final String Token_ = "token";
    public static final String UpdateTime_ = "update_time";
    public static final String UpdateBy_ = "update_by";
    public static final String IsDel_ = "is_del";


    @ApiModelProperty(value = "用户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "病区号")
    @TableField("district_code")
    private String districtCode;

    @ApiModelProperty(value = "用户代码")
    @TableField("user_code")
    private String userCode;

    @ApiModelProperty(value = "用户名称")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "用户类型")
    @TableField("user_type")
    private String userType;

    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "性别（0-男、1-女、2-未知）")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "出生日期")
    @TableField("date_birth")
    private LocalDateTime dateBirth;

    @ApiModelProperty(value = "籍贯")
    @TableField("birthplace")
    private String birthplace;

    @ApiModelProperty(value = "手机")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "email")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "证件号码")
    @TableField("id_number")
    private String idNumber;

    @ApiModelProperty(value = "证件类型")
    @TableField("id_number_type")
    private String idNumberType;

    @ApiModelProperty(value = "行政区代码")
    @TableField("pca_code")
    private String pcaCode;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "密码问题")
    @TableField("password_question")
    private String passwordQuestion;

    @ApiModelProperty(value = "密码答案")
    @TableField("password_answer")
    private String passwordAnswer;

    @ApiModelProperty(value = "最后登录时间")
    @TableField("last_login")
    private LocalDateTime lastLogin;

    @ApiModelProperty(value = "注册时间")
    @TableField("reg_time")
    private LocalDateTime regTime;

    @ApiModelProperty(value = "注销时间")
    @TableField("cance_time")
    private LocalDateTime canceTime;

    @ApiModelProperty(value = "用户状态(0-正常、1-冻结、2-销户、3--锁定、4-账号过期)")
    @TableField("user_state")
    private Integer userState;

    @ApiModelProperty(value = "注册终端(0-Web、1-安卓、2-IOS、99-接口用)")
    @TableField("terminal")
    private Integer terminal;

    @ApiModelProperty(value = "状态1=有效，0=无效")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "头像路径")
    @TableField("photo_url")
    private String photoUrl;

    @ApiModelProperty(value = "默认主页")
    @TableField("default_page")
    private String defaultPage;

    @ApiModelProperty(value = "token")
    @TableField("token")
    private String token;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "删除标记")
    @TableField("is_del")
    private Boolean isDel;


}
